cmake_minimum_required(VERSION 3.19)

project(ascend-aci-cpp)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)


# ascend-toolkit
set(INC_PATH "/usr/local/Ascend/ascend-toolkit/latest")
set(NPU_PATH "${INC_PATH}/runtime/lib64/stub")

set(INC_INCLUDE "${INC_PATH}/runtime/include")
set(INC_LIBS 
    "${NPU_PATH}/libascendcl.so"
)

# opencv
find_package(OpenCV)

add_executable(${PROJECT_NAME}
    main.cpp
    Network/NetworkTools.h Network/NetworkTools.cpp
    Network/EnhanceWrapper.h Network/EnhanceWrapper.cpp
)

target_include_directories(${PROJECT_NAME}
    PRIVATE
        ${OpenCV_INCLUDE_DIRS}
        ${INC_INCLUDE}
        .
)

target_link_libraries(${PROJECT_NAME}
    ${OpenCV_LIBS}
    ${INC_LIBS}
)